package com.flight.dao;

import com.flight.bean.AirInfo;

import java.util.List;

public interface AirInfoDao {
    //1.定义查询所有航班
    public List<AirInfo> getAirInfoAll();

    //2.按日期查询航班
    public List<AirInfo> getByAirDate(String date);

    //3.按目的地查询航班
    public List<AirInfo> getByAddress(String address);

    //4.删除航班
    public int deleteAirInfo(String  did);

    //5.更新航班
    public int updateAirInfo(AirInfo uid,String oldId);

    //6.查询航班是否存在（根据航班编号查询）
    public AirInfo findByAirId(String airId);
}
